import cv2
import numpy as np

img1 = cv2.imread('2.jpeg')
img2 = cv2.imread('3.jpeg')

img1 = cv2.resize(img1, (512, 288))
img2 = cv2.resize(img2, (512, 288))

img3 = cv2.addWeighted(img1, 0.2, img2, 0.8, 0)
img4 = cv2.addWeighted(img1, 0.8, img2, 0.2, 20)

img5 = cv2.addWeighted(img1, 0.2, img2, 0.8, 20)
img6 = cv2.addWeighted(img1, 10, img2, 2, -80)

cv2.imshow('img1', img1)
cv2.imshow('img2', img2)
cv2.imshow('img3', img3)
cv2.imshow('img4', img4)
cv2.imshow('img5', img5)
cv2.imshow('img6', img6)

cv2.waitKey(0)
cv2.destroyAllWindows()